package a.e.a;

import a.i.b;

import java.io.ByteArrayOutputStream;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectOutputStream;

class kb
  extends b
{
  private static final kb c = new kb();
  static Class d;
  
  public static kb a()
  {
    return c;
  }
  
  protected kb()
  {
    super(d == null ? (kb.d = b("java.io.Externalizable")) : d);
  }
  
  /* Error */
  protected Object a(String paramString)
    throws IllegalArgumentException
  {
    // Byte code:
    //   0: getstatic 159	a/e/a/r:f	Z
    //   3: istore 10
    //   5: aload_1
    //   6: invokestatic 11	a/e/b/d:a	(Ljava/lang/String;)[B
    //   9: astore_2
    //   10: aconst_null
    //   11: astore_3
    //   12: aconst_null
    //   13: astore 4
    //   15: new 12	java/io/ByteArrayInputStream
    //   18: dup
    //   19: aload_2
    //   20: invokespecial 13	java/io/ByteArrayInputStream:<init>	([B)V
    //   23: astore_3
    //   24: new 14	java/io/ObjectInputStream
    //   27: dup
    //   28: aload_3
    //   29: invokespecial 15	java/io/ObjectInputStream:<init>	(Ljava/io/InputStream;)V
    //   32: astore 4
    //   34: aload 4
    //   36: invokevirtual 16	java/io/ObjectInputStream:readObject	()Ljava/lang/Object;
    //   39: checkcast 17	java/lang/String
    //   42: invokestatic 18	a/e/r:d	(Ljava/lang/String;)Ljava/lang/String;
    //   45: invokestatic 1	java/lang/Class:forName	(Ljava/lang/String;)Ljava/lang/Class;
    //   48: invokevirtual 19	java/lang/Class:newInstance	()Ljava/lang/Object;
    //   51: astore 5
    //   53: aload 5
    //   55: checkcast 20	java/io/Externalizable
    //   58: aload 4
    //   60: invokeinterface 21 2 0
    //   65: aload 5
    //   67: astore 6
    //   69: jsr +68 -> 137
    //   72: aload 6
    //   74: areturn
    //   75: astore 5
    //   77: new 23	java/io/InvalidClassException
    //   80: dup
    //   81: aload 5
    //   83: invokevirtual 24	java/lang/InstantiationException:getMessage	()Ljava/lang/String;
    //   86: invokespecial 25	java/io/InvalidClassException:<init>	(Ljava/lang/String;)V
    //   89: athrow
    //   90: astore 5
    //   92: new 23	java/io/InvalidClassException
    //   95: dup
    //   96: aload 5
    //   98: invokevirtual 27	java/lang/IllegalAccessException:getMessage	()Ljava/lang/String;
    //   101: invokespecial 25	java/io/InvalidClassException:<init>	(Ljava/lang/String;)V
    //   104: athrow
    //   105: astore 5
    //   107: new 29	java/lang/IllegalArgumentException
    //   110: dup
    //   111: ldc 30
    //   113: invokespecial 31	java/lang/IllegalArgumentException:<init>	(Ljava/lang/String;)V
    //   116: athrow
    //   117: astore 5
    //   119: new 29	java/lang/IllegalArgumentException
    //   122: dup
    //   123: ldc 30
    //   125: invokespecial 31	java/lang/IllegalArgumentException:<init>	(Ljava/lang/String;)V
    //   128: athrow
    //   129: astore 7
    //   131: jsr +6 -> 137
    //   134: aload 7
    //   136: athrow
    //   137: astore 8
    //   139: aload 4
    //   141: iload 10
    //   143: ifne +8 -> 151
    //   146: ifnull +13 -> 159
    //   149: aload 4
    //   151: invokevirtual 32	java/io/ObjectInputStream:close	()V
    //   154: goto +5 -> 159
    //   157: astore 9
    //   159: aload_3
    //   160: iload 10
    //   162: ifne +7 -> 169
    //   165: ifnull +12 -> 177
    //   168: aload_3
    //   169: invokevirtual 33	java/io/ByteArrayInputStream:close	()V
    //   172: goto +5 -> 177
    //   175: astore 9
    //   177: ret 8
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	179	0	this	kb
    //   0	179	1	paramString	String
    //   9	11	2	arrayOfByte	byte[]
    //   11	158	3	localByteArrayInputStream	java.io.ByteArrayInputStream
    //   13	137	4	localObjectInputStream	java.io.ObjectInputStream
    //   51	15	5	localObject1	Object
    //   75	7	5	localInstantiationException	java.lang.InstantiationException
    //   90	7	5	localIllegalAccessException	java.lang.IllegalAccessException
    //   105	1	5	localIOException1	IOException
    //   117	1	5	localClassNotFoundException	ClassNotFoundException
    //   67	6	6	localObject2	Object
    //   129	6	7	localObject3	Object
    //   137	1	8	localObject4	Object
    //   157	1	9	localIOException2	IOException
    //   175	1	9	localIOException3	IOException
    //   3	158	10	bool	boolean
    // Exception table:
    //   from	to	target	type
    //   34	69	75	java/lang/InstantiationException
    //   34	69	90	java/lang/IllegalAccessException
    //   15	72	105	java/io/IOException
    //   75	105	105	java/io/IOException
    //   15	72	117	java/lang/ClassNotFoundException
    //   75	105	117	java/lang/ClassNotFoundException
    //   15	72	129	finally
    //   75	134	129	finally
    //   149	154	157	java/io/IOException
    //   168	172	175	java/io/IOException
  }
  
  protected String a(Object paramObject)
    throws IllegalArgumentException
  {
    boolean bool = r.f;
    String str = null;
    ByteArrayOutputStream localByteArrayOutputStream = null;
    ObjectOutputStream localObjectOutputStream = null;
    try
    {
      localByteArrayOutputStream = new ByteArrayOutputStream();
      localObjectOutputStream = new ObjectOutputStream(localByteArrayOutputStream);
      localObjectOutputStream.writeObject(a.e.r.c(paramObject.getClass().getName()));
      if (!bool)
      {
        if ((paramObject instanceof Externalizable))
        {
          ((Externalizable)paramObject).writeExternal(localObjectOutputStream);
          if (bool) {
            break label94;
          }
        }
      }
      else {
        if (r.e == 0) {
          break label89;
        }
      }
      throw new IllegalArgumentException("Object must be Externalizable");
      label89:
      localObjectOutputStream.flush();
      label94:
      str = d.a(localByteArrayOutputStream.toByteArray());
    }
    catch (IOException localIOException1)
    {
      throw new IllegalArgumentException("Unable to write Externalizable value");
    }
    finally
    {
      try
      {
        if ((bool) || (localObjectOutputStream != null))
        {
          localObjectOutputStream.close();
          localByteArrayOutputStream.close();
        }
      }
      catch (IOException localIOException2) {}
    }
    return str;
  }
  
  static Class b(String paramString)
  {
    try
    {
      return Class.forName(paramString);
    }
    catch (ClassNotFoundException localClassNotFoundException)
    {
      throw new NoClassDefFoundError(localClassNotFoundException.getMessage());
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.e.a.kb

 * JD-Core Version:    0.7.0.1

 */